package com.steven.ourcontest.me.api

import com.steven.ourcontest.me.bean.UsersDetailsRes
import com.steven.ourcontest.net.BaseResponse
import com.steven.ourcontest.net.EmptyResponse
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.*


interface MeApiService {

    @POST("/image/icon/upload")
    fun uploadIcon(
        @Body body: RequestBody
    ): Observable<BaseResponse<EmptyResponse>>

    @POST("/image/queryUrl")
    fun querySelfUrl(): Observable<BaseResponse<UsersDetailsRes>>
}